package com.pethome.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pethome.common.core.domain.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户信息Mapper接口
 * 
 * @author hjc
 * @date 2024-08-25
 */
public interface CustomerMapper extends BaseMapper<Customer>
{

    public Customer selectCustomerByCustomerName(String username);


    public Customer getCustomerByCustomerId(@Param("id") int customerId);






    /**
     * 查询客户信息
     * 
     * @param customerId 客户信息主键
     * @return 客户信息
     */
    public Customer selectCustomerByCustomerId(Long customerId);

    /**
     * 查询客户信息列表
     * 
     * @param customer 客户信息
     * @return 客户信息集合
     */
    public List<Customer> selectCustomerList(Customer customer);

    /**
     * 新增客户信息
     * 
     * @param customer 客户信息
     * @return 结果
     */
    public int insertCustomer(Customer customer);

    /**
     * 修改客户信息
     * 
     * @param customer 客户信息
     * @return 结果
     */
    public int updateCustomer(Customer customer);

    /**
     * 删除客户信息
     * 
     * @param customerId 客户信息主键
     * @return 结果
     */
    public int deleteCustomerByCustomerId(Long customerId);

//    恢复用户信息
    public int reCustomer(Long customerId);
    //    恢复用户信息
    public int LaHeiCustomer(Long customerId);



    /**
     * 批量删除客户信息
     * 
     * @param customerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerByCustomerIds(Long[] customerIds);
}
